package com.ruoyi.product.domain;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 规格属性模板对象 product_spec_template
 * 
 * @author liuhuizhong
 * @date 2025-08-07
 */
public class ProductSpecTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String name;

    /** 模板描述 */
    @Excel(name = "模板描述")
    private String description;

    /** 状态（1-启用，0-禁用） */
    @Excel(name = "状态", readConverterExp = "1=-启用，0-禁用")
    private Long status;

    /** 模板排序 */
    @Excel(name = "模板排序")
    private Long sort;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createdAt;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatedAt;

    private List<ProductSpecTemplateRelation> relationList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }

    public List<ProductSpecTemplateRelation> getRelationList() {
        return relationList;
    }

    public void setRelationList(List<ProductSpecTemplateRelation> relationList) {
        this.relationList = relationList;
    }
}
